package com.j180.controller;

import com.j180.bean.CountBean;
import com.j180.service.ICountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/count")
public class CountController {
    @Autowired
    private ICountService iCountServicel;

    @GetMapping("/getInfo")
    public List<CountBean> showCountInfo(){

        return iCountServicel.showCountInfo();
    }
}
